package com.wins.wx.api;

import com.wins.wx.api.model.DeptModel;

import static io.restassured.RestAssured.given;

// 部门相关的接口信息
public class DeptApi extends BaseWxApi{
    // 增删查改

    //新增部门
    public String create(DeptModel deptModel){
        String addDeptUri = "/cgi-bin/department/create";
        String resStr = given()
                        .queryParam("access_token",getToken()).log().all().body(deptModel)
                        .when().post(addDeptUri)
                        .then().log().all().extract().response().getBody().asString();
        System.out.println("bodyString:"+resStr);
        return resStr;
    }

    public void delete(Integer id){

    }

    public void get(){

    }

    public void update(){

    }

}

